#ifndef BUSINESSTHREAD_H
#define BUSINESSTHREAD_H

#include "DataCenter.h"
#include "KitharaUser.h"
#include <QThread>

class BusinessThread final : public QThread
{
    Q_OBJECT
Q_SIGNALS:
    void OperationResult(int code, const QString& message);

    void SendData(const QString &message);

public:
    explicit BusinessThread(QObject *parent = nullptr);
    ~BusinessThread() override;

    void Stop() const;

    /* 获取网卡列表 */
    [[nodiscard]] QStringList GetNetworkList() const;

    /* 配置网卡 */
    void SetNetworkIndex(int index);

protected:
    void run() override;

private:
    KitharaUser* kithara_user_{nullptr};
};



#endif //BUSINESSTHREAD_H
